/*
 * AddTrait.h
 *
 *  Created on: Jan 12, 2009
 *      Author: sez
 */

#ifndef ADDTRAIT_H_
#define ADDTRAIT_H_

#include "AddUpdateDialog.h"

#include <QDialog>

class Trait;
namespace Ui {
    class AddTraitDialog;
}

class AddTrait: public AddUpdateDialog
{
    Q_OBJECT
public:
    AddTrait(QWidget *parent = 0);
    virtual ~AddTrait();
    TitledData *data();
    static AddTrait *dialog(QWidget *parent = 0);
protected:
    void loadData();
    void saveData();
    void setupData();
    void clearData();
private:
    Ui::AddTraitDialog *mAddTrait;
    Trait *mData;
};

#endif /* ADDTRAIT_H_ */
